|
In mathematics, a self-descriptive number is an integer ''m'' that in a given base ''b'' is ''b'' digits long in which each digit ''d'' at position ''n'' (the most significant digit being at position 0 and the least significant at position ''b'' - 1) counts how many instances of digit ''n'' are in ''m''. ==Example== For example, in base 10, the number 6210001000 is self-descriptive because of the following reasons: In base 10, the number has 10 digits, indicating its base; It contains 6 at position 0, indicating that there are six 0s in 6210001000; It contains 2 at position 1, indicating that there are two 1s in 6210001000; It contains 1 at position 2, indicating that there is one 2 in 6210001000; It contains 0 at position 3, indicating that there is no 3 in 6210001000; It contains 0 at position 4, indicating that there is no 4 in 6210001000; It contains 0 at position 5, indicating that there is no 5 in 6210001000; It contains 1 at position 6, indicating that there is one 6 in 6210001000; It contains 0 at position 7, indicating that there is no 7 in 6210001000; It contains 0 at position 8, indicating that there is no 8 in 6210001000; It contains 0 at position 9, indicating that there is no 9 in 6210001000. 抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)』 ■ウィキペディアで「Self-descriptive number」の詳細全文を読む スポンサード リンク
|